package com.yuanfeng.order.service;


import com.yuanfeng.commoms.util.ResponseResult;
import com.yuanfeng.commoms.vo.order.OrderCommissionVO;
import com.yuanfeng.commoms.vo.order.WapShippingQueryResultVO;
import com.yuanfeng.commoms.vo.order.WapShopShippingQueryResultVO;
import com.yuanfeng.commoms.vo.user.UserInfoVO;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author fwx
 * @date 2021-06-0510:29
 * @Description: 分销
 **/
public interface FXService {
    /**
     * 创建分销佣金订单
     * @param shippingQueryResult
     * @param shopShippingQueryResult
     * @param userInfo
     * @param shareUserId
     * @param orderId
     * @param orderPrice
     * @return
     */
    OrderCommissionVO addOrderCommission(WapShippingQueryResultVO shippingQueryResult, WapShopShippingQueryResultVO shopShippingQueryResult, UserInfoVO userInfo, String shareUserId, String orderId, BigDecimal orderPrice, Integer fxType);

    /**
     * 分佣订单确认支付
     * @param orderIdList
     */
    void confirmOrderPay(List<String> orderIdList);

    /**
     * 更新分佣订单售后时间
     * @param orderId
     * @return
     */
    ResponseResult updateOrderAfterSale(String orderId);

    /**
     * 微客申请更新
     * @param orderIdList
     */
    void confirmVkApply(List<String> orderIdList);
}
